# $OpenBSD: Makefile,v 1.3 2017/02/27 19:32:35 naddy Exp $

COMMENT =	falling block puzzle game similar to Xixit
DISTNAME =	blockrage-0.2.3
CATEGORIES =	games x11
REVISION =	1

HOMEPAGE =	http://blockrage.sourceforge.net/

# GPLv2+
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB += SDL c m pthread

MASTER_SITES =	${MASTER_SITE_SOURCEFORGE:=blockrage/}

LIB_DEPENDS =	devel/sdl

CONFIGURE_STYLE =	simple
CONFIGURE_ARGS =	--sysconfdir=${SYSCONFDIR}

ALL_TARGET =	blockrage

NO_TEST =	Yes

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/blockrage ${PREFIX}/bin
	${INSTALL_DATA_DIR} ${PREFIX}/share/blockrage/test
	${INSTALL_DATA} ${WRKSRC}/data/test/* ${PREFIX}/share/blockrage/test
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/blockrage
	${INSTALL_DATA} ${WRKSRC}/blockrage{.cfg,-fhs.rc} ${PREFIX}/share/examples/blockrage
	${INSTALL_MAN} ${WRKSRC}/blockrage.6 ${PREFIX}/man/man6

.include <bsd.port.mk>
